
package com.shop.cloud.mall.common.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import jakarta.validation.constraints.NotNull;
import java.time.LocalDateTime;


/**
 * 活动背景关联表
 *
 * @author
 * @date 2023-03-27 10:30:55
 */
@Data
@TableName("active_background_relation")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "活动背景关联表")
public class ActiveBackgroundRelation extends Model<ActiveBackgroundRelation> {
    private static final long serialVersionUID=1L;

    /**
     * PK
     */
    @TableId(type = IdType.ASSIGN_ID)
    @NotNull(message = "PK不能为空")
    @Schema(description = "PK")
    private String id;
    /**
     * 所属租户
     */
    @NotNull(message = "所属租户不能为空")
    @Schema(description = "所属租户")
    private String tenantId;
    /**
     * 逻辑删除标记（0：显示；1：隐藏）
     */
    @NotNull(message = "逻辑删除标记（0：显示；1：隐藏）不能为空")
    @Schema(description = "逻辑删除标记（0：显示；1：隐藏）")
    private String delFlag;
    /**
     * 创建时间
     */
    @NotNull(message = "创建时间不能为空")
    @Schema(description = "创建时间")
    private LocalDateTime createTime;
    /**
     * 最后更新时间
     */
    @NotNull(message = "最后更新时间不能为空")
    @Schema(description = "最后更新时间")
    private LocalDateTime updateTime;
    /**
     * 创建者ID
     */
    @Schema(description = "创建者ID")
    private String createId;
    /**
     * 活动边框ID
     */
    @NotNull(message = "活动边框ID不能为空")
    @Schema(description = "活动边框ID")
    private String activeBackgroundId;
    /**
     * 关联Id
     */
    @NotNull(message = "关联Id不能为空")
    @Schema(description = "关联Id")
    private String relationId;

	@TableField(exist = false)
	private GoodsSpu goodsSpu;
}
